package es.ikex.beans;

import java.io.Serializable;
import java.util.Collection;

import es.ikex.modelo.ModelFacade;
import es.ikex.modelo.Slider;

public class SliderBean implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String foto;
	private int id;
	private String nombre;
	private String efecto;
	private String where;
	
	public String getFoto() {
		return foto;
	}
	public void setFoto(String foto) {
		this.foto = foto;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	
	
	public String getWhere() {
		return where;
	}
	public void setWhere(String where) {
		this.where = where;
	}
	public String getNombre() {
		return nombre;
	}
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	
	
	public String getEfecto() {
		return efecto;
	}
	public void setEfecto(String efecto) {
		this.efecto = efecto;
	}
	public Collection<Slider> getSlider(){
		if(getWhere() == null)
			setWhere("");
		Collection<Slider> slider = ModelFacade.getSlider(getWhere());
		return slider;
	}
}
